<h1>Listing resources</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Description</th>
    <th>Icon</th>
    <th>Wiki page</th>
    <th>Min stage</th>
    <th>Max stage</th>
  </tr>

<% @resources.each do |resource| %>
  <tr>
    <td><%=h resource.name %></td>
    <td><%=h resource.description %></td>
    <td><%=h resource.icon %></td>
    <td><%=h resource.wiki_page %></td>
    <td><%=h resource.min_stage %></td>
    <td><%=h resource.max_stage %></td>
    <td><%= link_to 'Show', resource %></td>
    <td><%= link_to 'Edit', edit_resource_path(resource) %></td>
    <td><%= link_to 'Destroy', resource, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New resource', new_resource_path %>